int cfind(char s[], char c)
{
    int index = -1;
    for (int i = 0; s[i] != '\0'; i++)
        if (s[i] == c)
            index = i;
    return index;
}